package com.smart.constants;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "admin")
public class AdminConfig {
	// 一级域名
	private String domainUrl;
	// 是否开启自动退款任务 true false
	private boolean payBackTask;
	// 是否开启支付回调失败定时任务 true false
	private boolean payFailedTask;
	// 是否开启自动处理电子券过期任务
	private boolean ecpExpiredTask;
	// 是否开启优惠券过期自动下架任务
	private boolean cpInfoUnderTask;
	// 是否开启自动统计任务
	private boolean ecpExportTask;
	// 中间系统接口前缀地址
	private String url;
	// 去会员营销系统获取券码接口
	private String createUsrCouponUrl;
	// 退款回调成功去中间系统更新相关业务状态
	private String payBackUrl;

	private String appId;
	private String appSecret;

	// 油企ID
	private String merchantId;

	private String pufamd5Key;
	private String pufaPayUrl;
	private String pufaRefundUrl;

	private String o2oOrderServer;
	private boolean tangchaoEnable;
	private String tangchaoKey;
	private String tanchaoSendDataUrl;
	private String tanchaoUserVerifyUrl;
	private String tanchaoGetDataUrl;

	private String dailyPaperExportPath;
	/**
	 * 加油站开结班时间间隔,只有开结班后超过这个时间才允许再次开结班
	 * 单位:秒
	 */
	private Integer closeStationClass;
	private String closeStationClassInfo;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPayBackUrl() {
		return payBackUrl;
	}

	public void setPayBackUrl(String payBackUrl) {
		this.payBackUrl = payBackUrl;
	}

	public boolean execPayBackTask() {
		return payBackTask;
	}

	public void setPayBackTask(boolean payBackTask) {
		this.payBackTask = payBackTask;
	}

	public String getCreateUsrCouponUrl() {
		return createUsrCouponUrl;
	}

	public void setCreateUsrCouponUrl(String createUsrCouponUrl) {
		this.createUsrCouponUrl = createUsrCouponUrl;
	}

	public boolean isPayBackTask() {
		return payBackTask;
	}

	public String getDomainUrl() {
		return domainUrl;
	}

	public void setDomainUrl(String domainUrl) {
		this.domainUrl = domainUrl;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getPufamd5Key() {
		return pufamd5Key;
	}

	public void setPufamd5Key(String pufamd5Key) {
		this.pufamd5Key = pufamd5Key;
	}

	public String getPufaPayUrl() {
		return pufaPayUrl;
	}

	public void setPufaPayUrl(String pufaPayUrl) {
		this.pufaPayUrl = pufaPayUrl;
	}

	public String getPufaRefundUrl() {
		return pufaRefundUrl;
	}

	public void setPufaRefundUrl(String pufaRefundUrl) {
		this.pufaRefundUrl = pufaRefundUrl;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public boolean isPayFailedTask() {
		return payFailedTask;
	}

	public void setPayFailedTask(boolean payFailedTask) {
		this.payFailedTask = payFailedTask;
	}

	public boolean isEcpExpiredTask() {
		return ecpExpiredTask;
	}

	public void setEcpExpiredTask(boolean ecpExpiredTask) {
		this.ecpExpiredTask = ecpExpiredTask;
	}

	public boolean isCpInfoUnderTask() {
		return cpInfoUnderTask;
	}

	public void setCpInfoUnderTask(boolean cpInfoUnderTask) {
		this.cpInfoUnderTask = cpInfoUnderTask;
	}

	public String getO2oOrderServer() {
		return o2oOrderServer;
	}

	public void setO2oOrderServer(String o2oOrderServer) {
		this.o2oOrderServer = o2oOrderServer;
	}

	public String getTangchaoKey() {
		return tangchaoKey;
	}

	public void setTangchaoKey(String tangchaoKey) {
		this.tangchaoKey = tangchaoKey;
	}

	public String getTanchaoSendDataUrl() {
		return tanchaoSendDataUrl;
	}

	public void setTanchaoSendDataUrl(String tanchaoSendDataUrl) {
		this.tanchaoSendDataUrl = tanchaoSendDataUrl;
	}

	public String getTanchaoUserVerifyUrl() {
		return tanchaoUserVerifyUrl;
	}

	public void setTanchaoUserVerifyUrl(String tanchaoUserVerifyUrl) {
		this.tanchaoUserVerifyUrl = tanchaoUserVerifyUrl;
	}

	public String getTanchaoGetDataUrl() {
		return tanchaoGetDataUrl;
	}

	public void setTanchaoGetDataUrl(String tanchaoGetDataUrl) {
		this.tanchaoGetDataUrl = tanchaoGetDataUrl;
	}

	public boolean isTangchaoEnable() {
		return tangchaoEnable;
	}

	public void setTangchaoEnable(boolean tangchaoEnable) {
		this.tangchaoEnable = tangchaoEnable;
	}

	public Integer getCloseStationClass() {
		return closeStationClass;
	}

	public void setCloseStationClass(Integer closeStationClass) {
		this.closeStationClass = closeStationClass;
	}

	public String getCloseStationClassInfo() {
		return closeStationClassInfo;
	}

	public void setCloseStationClassInfo(String closeStationClassInfo) {
		this.closeStationClassInfo = closeStationClassInfo;
	}


	public boolean isEcpExportTask() {
		return ecpExportTask;
	}

	public void setEcpExportTask(boolean ecpExportTask) {
		this.ecpExportTask = ecpExportTask;
	}

	public String getDailyPaperExportPath() {
		return dailyPaperExportPath;
	}

	public void setDailyPaperExportPath(String dailyPaperExportPath) {
		this.dailyPaperExportPath = dailyPaperExportPath;
	}
}
